package com.budwk.app.miniapp.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import com.budwk.starter.database.model.BaseModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * 应急信息抓取数据库对象 wx_spider_emergency_information
 *
 * @author dfxy
 * @date 2023-04-10
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table("wx_spider_emergency_information")
@ApiModel(description = "应急信息表")
@AllArgsConstructor
@NoArgsConstructor
public class WxSpiderEmergencyInformation extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Name
    @Column
    @Comment("主键ID")
    @ApiModelProperty(description = "主键ID")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    @PrevInsert(uu32 = true)
    private String id;

    /**
     * 应急信息标题
     */
    @Column
    @Comment("应急信息标题")
    @ApiModelProperty(description = "应急信息标题")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String informationtitle;

    /**
     * 应急信息详细内容
     */
    @Column
    @Comment("应急信息详细内容")
    @ApiModelProperty(description = "应急信息详细内容")
    @ColDefine(type = ColType.VARCHAR, width = 80000)
    private String informationcontent;

    /**
     * 省
     */
    @Column
    @Comment("省")
    @ApiModelProperty(description = "省")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String province;

    /**
     * 市
     */
    @Column
    @Comment("市")
    @ApiModelProperty(description = "市")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String city;

    /**
     * 区县
     */
    @Column
    @Comment("区县")
    @ApiModelProperty(description = "区县")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String district;

    /**
     * 乡镇
     */
    @Column
    @Comment("乡镇")
    @ApiModelProperty(description = "乡镇")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String street;

    /**
     * 信息渠道
     */
    @Column
    @Comment("信息渠道")
    @ApiModelProperty(description = "信息渠道")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    private String informationchannels;

    /**
     * 应急信息发布时间
     */
    @Column
    @Comment("应急信息发布时间")
    @ApiModelProperty(description = "应急信息发布时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 6)
    private Date releasetime;

    /**
     * 添加时间
     */
    @Column
    @Comment("添加时间")
    @ApiModelProperty(description = "添加时间")
    @ColDefine(type = ColType.VARCHAR, width = 25)
    private String addtime;

    /**
     * 添加人
     */
    @Column
    @Comment("添加人")
    @ApiModelProperty(description = "添加人")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String addperson;

    /**
     * 创建日期
     */
    @Column
    @Comment("创建日期")
    @ApiModelProperty(description = "创建日期")
    @ColDefine(type = ColType.TIMESTAMP, width = 6)
    private Date createdate;

    /**
     * 应急信息媒体
     */
    @Column
    @Comment("应急信息媒体")
    @ApiModelProperty(description = "应急信息媒体")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String informationmedia;

    /**
     * 添加人手机
     */
    @Column
    @Comment("添加人手机")
    @ApiModelProperty(description = "添加人手机")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String addphone;

    /**
     * 灾情定位经度
     */
    @Column
    @Comment("灾情定位经度")
    @ApiModelProperty(description = "灾情定位经度")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String longitude;

    /**
     * 灾情定位纬度
     */
    @Column
    @Comment("灾情定位纬度")
    @ApiModelProperty(description = "灾情定位纬度")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String latitude;

    /**
     * 灾情图片
     */
    @Column
    @Comment("灾情图片")
    @ApiModelProperty(description = "灾情图片")
    @ColDefine(type = ColType.VARCHAR, width = 80000)
    private String picurl;

    /**
     * 灾情类型
     */
    @Column
    @Comment("灾情类型")
    @ApiModelProperty(description = "灾情类型")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String disasterType;

    /**
     * 灾情详细地址
     */
    @Column("disaster_address")
    @Comment("灾情详细地址")
    @ApiModelProperty(description = "灾情详细地址")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String disasterAddress;

    /**
     * 灾害等级
     */
    @Column("disaster_class")
    @Comment("灾害等级")
    @ApiModelProperty(description = "灾害等级")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String disasterClass;

    /**
     * 事件图片
     */
    @Column("event_pic_url")
    @Comment("事件图片")
    @ApiModelProperty(description = "事件图片")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String eventPicUrl;

    /**
     * 信息类型
     */
    @Column("disaster_status")
    @Comment("信息类型")
    @ApiModelProperty(description = "信息类型")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String disasterStatus;

    /**
     * 视频地址
     */
    @Column("video_url")
    @Comment("视频地址")
    @ApiModelProperty(description = "视频地址")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String videoUrl;

    /**
     * 是否显示(0可看1不可看2未审核3审核不通过4审核通过)
     */
    @Column
    @Comment("是否显示(0可看1不可看2未审核3审核不通过4审核通过)")
    @ApiModelProperty(description = "是否显示(0可看1不可看2未审核3审核不通过4审核通过)")
    @ColDefine(type = ColType.VARCHAR, width = 2)
    private String isshow;
}
